package com.fcgzs.springboot.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.List;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 
 * </p>
 *
 * @author wjd
 * @since 2021-10-12
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@TableName("t_checkgroup")
public class Checkgroup implements Serializable {

    private static final long serialVersionUID = 1L;

    //@TableId 标记当前类属性id和数据库主键字段的对应关系
    //type = IdType.AUTO指id增长方式  auto_increment,将数据库生成的主键值放入到对象属性
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String code;

    private String name;

    @TableField("helpCode")
    private String helpcode;

    private String sex;

    private String remark;

    private String attention;

    @TableField(exist = false) //排除字段
    private List<Checkitem> checkItems;

    }
